package com.daka.service.impl;

import com.daka.dao.OrganizationCountMapper;
import com.daka.entity.GroupVolunteer;
import com.daka.service.OrganizationCountService;
import com.daka.vo.db.ActivityCountVo;
import com.daka.vo.db.OrgCountVo;
import com.daka.vo.db.VolunteerTimeVo;
import com.daka.vo.response.statistics.GroupCountVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author beliveli on 2016/3/31 0031.
 */
@Service("organizationCountService")
@SuppressWarnings("unused")
public class OrganizationCountServiceImpl implements OrganizationCountService {

    @Resource(name = "organizationCountMapper")
    private OrganizationCountMapper organizationCountMapper;

    public OrgCountVo selectAll(String onePass) {
        return organizationCountMapper.selectAll(onePass);
    }

    public List<OrgCountVo> selectByMonth(int orgId) {
        return organizationCountMapper.selectByMonth(orgId);
    }

    public OrgCountVo selectIndexCount(int orgId, int platformId, String jurisdiction) {
        return organizationCountMapper.selectIndexCount(orgId, platformId, jurisdiction);
    }

    public GroupCountVo selectGroupCount(int orgId, int status, int client, String startDate, String endDate, String jurisdiction) {
        return organizationCountMapper.selectGroupCount(orgId, status, client, startDate, endDate, jurisdiction);
    }

    @Override
    public List<ActivityCountVo> selectActivityYes(int orgId, int status, int client, String startDate, String endDate) {
        return organizationCountMapper.selectActivityYes(orgId, status, client, startDate, endDate);
    }

    @Override
    public List<Integer> selectActivityCountYes(int orgId, int status, int client, String startDate, String endDate) {
        return organizationCountMapper.selectActivityCountYes(orgId, status, client, startDate, endDate);
    }

    @Override
    public List<ActivityCountVo> selectActivity(int orgId, int client, String startDate, String endDate, String jurisdiction) {
        return organizationCountMapper.selectActivity(orgId, client, startDate, endDate, jurisdiction);
    }

    @Override
    public List<Integer> selectActivityCount(int orgId, int client, String jurisdiction) {
        return organizationCountMapper.selectActivityCount(orgId, client, jurisdiction);
    }

    @Override
    public VolunteerTimeVo selectTimeByVolunteer(String groupIds) {
        return organizationCountMapper.selectTimeByVolunteer(groupIds);
    }

    @Override
    public Integer selectVolunteerCount(String groupIds, int status) {
        return organizationCountMapper.selectVolunteerCount(groupIds, status);
    }

    @Override
    public List<GroupVolunteer> selectGroupVolunteer(String groupIds, int status, String startDate, String endDate) {
        return organizationCountMapper.selectGroupVolunteer(groupIds, status, startDate, endDate);
    }
}
